package com.kcht.np.vo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Set;

/**
  * @Description: 用户关联角色
  * @Package:     com.kcht.np.mp.vo
  * @Author:      liuqi
  * @CreateDate:  2020/4/1 0:17
 */

@Getter
@Setter
@ToString
public class UserRelatedRoleVo implements java.io.Serializable {

    @NotNull(message = "用户ID不能为空!")
    private Long uid;

    @NotNull(message = "角色ID列表,不能为空!")
    @Size(min = 1, message = "用户角色最少赋值一个")
    private Set<Long> roles;

}
